package cn.wp.ewallet.common.web.controller;

import cn.wp.common.core.Wp;
import cn.wp.common.core.dto.WpResult;
import cn.wp.ewallet.common.model.dto.PubLanguageInfoDto;
import cn.wp.ewallet.common.service.PubLanguageInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 语言信息-控制层
 * Created by 干杰 on 2019/10/23
 */
@RestController
@RequestMapping(Wp.WebContext + "/ewallet/common/language")
@Api(tags="语言信息")
public class PubLanguageInfoController {

    @Autowired
    private PubLanguageInfoService pubLanguageInfoService;

    @GetMapping("/getLanguageInfoList")
    @ApiOperation(value = "获取语言信息列表")
    public WpResult getLanguageInfoList(){
        List<PubLanguageInfoDto> languageInfoList = pubLanguageInfoService.getLanguageInfoList();
        return new WpResult().success(languageInfoList);
    }



}